using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using System.Reflection;

namespace miciv
{
    class ModuleInfo
    {
        public ModuleInfo(Assembly _Assembly)
        {
            this.m_Assembly = _Assembly;
            this.m_htblCoManagers = new Hashtable();
            this.m_htblTypes = new Hashtable();
            this.m_moduleInterface = null;
        }

        public bool AddManager(string _strName, IComponentManager _Manager)
        {
            if (false == this.m_htblCoManagers.ContainsKey(_strName))
            {
                this.m_htblCoManagers.Add(_strName, _Manager);
                return true;
            }
            return false;
        }

        public bool AddManager(string _strName, Type _type)
        {
            if (false == this.m_htblTypes.ContainsKey(_strName))
            {
                this.m_htblTypes.Add(_strName, _type);
                return true;
            }
            return false;
        }

        public Hashtable m_htblCoManagers;
        public Hashtable m_htblTypes;
        public Assembly m_Assembly;
        public IModule m_moduleInterface;
    }
}
